<div id="boxes_wrapper">
<?php foreach($boxes as $box):?>
<div class="box_wrapper" style="<?php echo $box['style']; ?>">
<span class="box_title"><?php echo $box['title']; ?></span>
	<?php 
	if(array_key_exists('articles',$box))
	{
		foreach($box['articles'] as $article):
	?>

	<h1><?php echo $article->title; ?></h1>
	<p><?php echo $article->abstract; ?></p>
	<div class="box_links">
	<div class="box_links_stamp">Lenox Garden (London, UK), 22.12.2010.</div>
	<div class="box_links_info">By Sanjay Goel (475)</div>
	<div class="box_links_info">More on this story (4 articles)</div>
	</div>

	<?php 
		endforeach;
	}
	else
	{
		foreach($box['data'] as $content):
	?>
	<p><?php echo $content; ?></p>
	
	
	<?php 
		endforeach;
	}
	?>
</div>	
<?php endforeach;?>
</div>
